UserName Property (ADO Data Control)

       

Returns or sets a value that represents a user of an ADO Recordset object.

Syntax

object.UserName [= value]

The UserName property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A string expression that contains a user name as described in Settings.

Settings

The user-name syntax depends on the data source.

Remarks

When a UserName and Password are supplied, the control uses the values to create a connection string (ConnectionString property).